package com.goblin.common.util;

public final class StrUtil {
	public static String array2String(String[] arr) {
		if (null == arr || arr.length < 1) {
			return null;
		}
		if (arr.length == 1) {
			return arr[0];
		}

		StringBuilder sb = new StringBuilder();
		for (String str : arr) {
			sb.append(str + ",");
		}
		return sb.toString();
	}
}
